package com.shycloud.mido.member.service;

import com.shycloud.mido.member.api.dto.MemberV2DTO;

import java.util.Map;

public interface RegisterService {

	/**
	 * APP 端注册用户
	 *
	 * @param requestMap 请求体
	 * @return
	 * @author nianhua.jiang
	 * @date 2021/7/14 15:54
	 */
	boolean appRegister(Map<String, String> requestMap);

	/**
	 * 微信注册用户
	 *
	 * @param username 账号
	 * @param openId   微信OpenId
	 * @return
	 * @author nianhua.jiang
	 * @date 2021/7/14 15:54
	 */
	String wxRegister(String username, String openId);

	/**
	 * IOS端注册用户
	 *
	 * @param appleId 苹果ID
	 * @return memberId
	 * @author nianhua.jiang
	 * @date 2021/7/14 17:10
	 */
	String iosRegister(String appleId, String appleToken);

	/**
	 * 上音社注册用户
	 *
	 * @param username 账号
	 * @return memberId
	 * @author nianhua.jiang
	 * @date 2021/7/14 17:10
	 */
	String syRegister(String username);

	String wxMiniRegister(String wxOpenId);

	/**
	 * 分享注册
	 *
	 * @param phone    手机号
	 * @param code     验证码
	 * @param memberId 受益人 memberId
	 * @param pageId   分享页面ID
	 * @return
	 * @author nianhua.jiang
	 * @date 2021/7/15 10:13
	 */
	String shareRegister(String phone, String code, String memberId, Integer pageId);

	/**
	 * 后台管理注册用户
	 *
	 * @param
	 * @return
	 * @author nianhua.jiang
	 * @date 2021/7/14 17:11
	 */
	String register(MemberV2DTO member);

}
